package stu.aistar.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import stu.aistar.model.pojo.User;
@Component
public interface IUserDao extends JpaRepository<User,Integer> {
    User findUserByPhone(String phone);
    User findUserByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);
}
